import request from "@/utils/request";

const getProductList = (query: any) => {
  return request({
    url: `/product`,
    method: "get",
    params: { query },
  })
}

const addProduct = (data: any) => {
  return request({
    url: `/product`,
    method: "post",
    data
  })
}

export default {
  getProductList,
  addProduct,
}
